package com.linkhouse;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan("com.linkhouse.mapper")
@EnableSwagger2  //开启Swagger2注解
@EnableDiscoveryClient  //开启发现客户端  此注解适用于所有的注册中心  包括eureka
@EnableScheduling//开启自动扫描定时器
public class OrderServiceApp {

    public static void main(String[] args) {
        SpringApplication.run(OrderServiceApp.class,args);
    }
}
